package zjc.程序流程控制;

public class 双重循环 {
    public static void main(String[] args) {
        //案例：吃药一共五天每天吃三粒
        for (int i = 1; i <= 5; i++) {
            System.out.println("第"+i+"天");
            for (int j = 0; j < 3; j++) {
                System.out.println("吃了一粒");
            }
        }
    }
}
